import {NgModule} from '@angular/core';
import {CommonModule} from '@angular/common';
import {HeaderComponent} from './header/header.component';
import {GoodListComponent} from './good-list/good-list.component';
import {SkuItemNormalComponent} from './sku-item-normal/sku-item-normal.component';
import {LayoutTitleComponent} from './layout-title/layout-title.component';
import {MessageComponent} from './message/message.component';
import {MessageService} from './message/message.service';
import {OverlayModule} from '@angular/cdk/overlay';
import {PortalModule} from '@angular/cdk/portal';

const array = [
  HeaderComponent,
  GoodListComponent,
  SkuItemNormalComponent,
  LayoutTitleComponent,
  MessageComponent
];

@NgModule({
  imports: [
    CommonModule,
    OverlayModule,
    PortalModule
  ],
  declarations: [...array],
  exports: [...array],
  entryComponents: [MessageComponent],
  providers: [MessageService]
})
export class ShareModule {
}

